package com.ma.crawl_book.service.impl;

import com.ma.crawl_book.dao.BookDao;
import com.ma.crawl_book.model.BookBean;
import com.ma.crawl_book.service.BookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class BookServiceImpl  implements BookService {

    @Resource
    private BookDao bookDao;
    @Override
    public int insertBook(BookBean bookBean) {
        return bookDao.insertBook(bookBean);
    }
}
